﻿using ProtoBuf;

namespace DHTools
{
    [ProtoContract]
    public class XAnimation
    {
        [ProtoMember(1)]
        public string name;

        [ProtoMember(2)]
        public float duration;

        [ProtoMember(3)]
        public uint nKeys;

        [ProtoMember(4)]
        public XAnimationKey[] keys;

        [ProtoMember(5)]
        public int boneCount;
    }

    [ProtoContract]
    public class XAnimationKey
    {
        [ProtoMember(1)]
        public float time;

        [ProtoMember(2)]
        public uint nScaleTransforms;

        [ProtoMember(3)]
        public XScaleTransform[] scaleTransforms;

        [ProtoMember(4)]
        public uint nTransforms;

        [ProtoMember(5)]
        public XTransform[] transforms;
    }
}